<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="../include/header.jsp" %>
	<!--  리스트 변수가 null 이 아니면 -->
	<c:if test="${map.list.size() > 0 }">
	<hr style="color:gray;" />
	<table border="1" style="width:540px;">
		<tr align="center">
			<td width="15%">우편번호</td>
			<td>주 소</td>
		</tr>
		<!--  request.getAttribue("list") -->
		<c:forEach var='row' items="${map.list}">
			<tr>
				<td align="center">${row.zipcode }</td>
				<td>
					<!--  href="#" ==> 링크 기능을 막음 -->
					<a href="#" onclick="zipcode_copy('${row.zipcode}','${row.sido } ${row.gugun } ${row.dong }')">
					${row.sido } ${row.gugun } ${row.dong } ${row.bunji }
					</a>
				</td>
			</tr>		
		</c:forEach>	
	</table>	
	</c:if>
	<c:if test="${map.list.size() == 0 }">
		결과가 없습니다.
	</c:if>